#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main()
{
    char* argv[] = {"/usr/bin/ping", "-c", "10", "baidu.com", NULL};

    char* envp[] = {NULL};
    int res = execve(argv[0], argv, envp);
    if(res == -1)
    {
        perror("execve");
        return -1;
    }
    return 0;
}
